package marmalius;

public class Prayer {
	public static void buryBone (client player, int itemId, int slot) {
		if (player.getInventory().hasItemIdAtIndex(itemId, slot)) {//if (player.testItemSlot(itemId, slot)) {
			int boneXP = getBoneXP(itemId);
			if (boneXP > 0) {
				player.deleteItem(itemId, slot, 1);
				player.addSkillXP(boneXP, 5);
				player.sendMessage("You bury bones.");
			}
		}
	}
	
	private static int getBoneXP (int boneId) {
		switch (boneId) {
			case 526:
			case 2530:
				return 4;
			default:
				return 0;
		}
	}
}
